package C_Paper;

public class C100_24 {
    public Character a = '/';
    public static void main(String[] args) {
        System.out.println(str(2, "computing", new String[]{"/huawei/computing/no/one","/huawei/computing","/huawei","/huawei/cloud/no/one","/huawei/wireless/no/one"}));
        System.out.println(str(4, "one", new String[]{"/huawei/computing/no/one","/huawei/computing","/huawei","/huawei/cloud/no/one","/huawei/wireless/no/one"}));
    }
    public static int str(int x, String st ,String[] str){
        int num = 0;
        for (String m : str) {
            String[] spl = m.split("/");
            if (spl.length <= x) continue;
            if (spl[x].equals(st)) num++;
        }
        return num;
    }
}
